home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / BitmapPainter / BitmapPainter.jar / Painter.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-11-01  |  1.1 KB  |  39 lines

  1. import javax.microedition.lcdui.Display;
  2. import javax.microedition.lcdui.Image;
  3. import javax.microedition.midlet.MIDlet;
  4.  
  5. public class Painter extends MIDlet {
  6.    public Display display;
  7.    public static int width;
  8.    public static int height;
  9.    public static int fontHeight;
  10.    public static Image intro;
  11.  
  12.    public void destroyApp(boolean var1) {
  13.    }
  14.  
  15.    public void exit() {
  16.       this.destroyApp(false);
  17.       ((MIDlet)this).notifyDestroyed();
  18.    }
  19.  
  20.    private void loadImages() {
  21.       try {
  22.          intro = Image.createImage("/painter.png");
  23.       } catch (Exception var2) {
  24.          ((Throwable)var2).printStackTrace();
  25.       }
  26.  
  27.    }
  28.  
  29.    public void pauseApp() {
  30.    }
  31.  
  32.    public void startApp() {
  33.       this.loadImages();
  34.       Intro var1 = new Intro(this);
  35.       this.display = Display.getDisplay(this);
  36.       this.display.setCurrent(var1);
  37.    }
  38. }
  39.